<div id="view_client" class="zoom-anim-dialog view-booking-popup-edit relative">                   
                   
                   <div class="">
                        <h1>تعديل سند صرف</h1>
                        <hr />
                        <form name="editRecpit" method="POST" action="editPayment.php">
                        <div class="bookings-edit-container">
                        <div class="bookings-edit-row">
                        <table class="edit-bookings-table">
                            	<tr>
                                    <td>التاريخ</td>
                                    <td>:&nbsp;<input readonly required type="text" class="small-input date_miladi" name="date" id="date-miladi" placeholder="" value="<?php echo  $payment['miladi_date'];?>" /></td>
                                    <td>رقم السند</td>
                                    <td>:&nbsp;<?php echo  $payment['payment_id'];?></td>
                                </tr>
                               <tr>
                                    <td>الموافق</td>
                                    <td class="date_hijri">:&nbsp; <?php echo $payment['Hijri_date'] ;?></td>
                                    <td><input type="hidden" name="contract_id" class="contract_id small-input " value="<?php echo $payment['contract_id'] ;?>"/>
                                    <input type="hidden" name="payment_id" class="contract_id small-input " value="<?php echo $payment['payment_id'] ;?>"/>
                                    </td>
                                    <td><input type="hidden" name="hijri-date" id="date_hijri" value="<?php echo $payment['Hijri_date'] ;?>"/> </td>
                                </tr>
                                <tr>
                                    <td>النوع</td>
                                      <td>:&nbsp;
                                        <select name="payment_type"   class="payment_type">
                                        <?php
                                          if($payment['payment_type'] == 0)
                                            echo '<option selected="selected" value="0">سند صرف</option>';
                                          else
                                            echo '<option value="0">سند صرف</option>';
                                            
                                          if($payment['payment_type'] == 1)
                                            echo '<option selected="selected" value="1">بدل تأمين</option>';
                                          else
                                            echo '<option value="1">بدل تأمين</option>';
                                        ?>
                                          
                                        </select>
                                      </td>
                                  </tr>
                                 <tr>
                                    <td>أمين الصندوق</td>
                                    <td>:&nbsp;<?php echo $payment['amen_sondoq'] ;?></td>
                                </tr>
                                <tr>
                                	<td>المستلم</td>
                                    <td>::&nbsp;<input type="text" required class="small-input" name="recipient" id="" placeholder="" value="<?php echo $payment['recipient'] ;?>"/></td>
                                </tr>
                                <tr>
                                	<td>المبلغ </td>
                                    <td>:&nbsp;<input type="text" class="auto-input amout-paid-1" name="amount" value="<?php echo $payment['amount'] ;?>"/></td>
                                    <td>طريقة الدفع</td>
                                    <td>:&nbsp;
                                    <select required class="small-select" name="type">
                                      <?php 
                                        $i = 0;
                                        foreach($payment_method as $method)
                                        {
                                          if($payment['paymen_method'] == $i)
                                          {
                                           echo "<option selected='selected' value='{$i}'>{$method}</option>";
                                          }
                                          else
                                          {
                                            echo "<option value='{$i}'>{$method}</option>";
                                          }
                                          
                                          $i++;
                                          
                                        }
                                       ?>
                                    </select>
                                    </td>
                                </tr>
                                <tr>
                                	<td>من أجل</td>
                                    <td>:&nbsp;<input required type="text" class="auto-input" name="reason" value="<?php echo $payment['reason']; ?>" /></td>
                                </tr>
                                <tr>
                                	<td>ملاحظات </td>
                                    <td><p class="text-right"><textarea id="" class="" style="" tabindex="19" cols="20" rows="2" name="notes" value="<?php echo $payment['notes']; ?>"></textarea></p></td>
                                </tr>
                         </table>       
                        </div>
                        <div class="save-botton">حفظ</div>
                        </div>
                        </form>
                      </div>  
                      </div>  
